package com.qf.service.impl;

import com.qf.mapper.DtsUserMapper;
import com.qf.mapper.StatMapper;
import com.qf.service.DtsUserService;
import com.qf.vo.DayStatis;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 千锋教育
 * @Company http://www.mobiletrain.org/
 * @Version 1.0
 */
@Service
public class DtsUserServiceImpl implements DtsUserService {

    @Autowired
    DtsUserMapper userMapper;

    @Autowired
    StatMapper statMapper;

    @Override
    public Integer getTotal() {
        return userMapper.selectCount(null);
    }

    @Override
    public List<DayStatis> findUserStatis() {
        return statMapper.getUserCnts();
    }
}
